import { useNavigate, useSearchParams } from 'react-router-dom'
import { NavBar } from 'antd-mobile'
import styles from '../css/MyavBr.module.css'
const MyavBr = (props) => {
    const nav = useNavigate()
  // const [sp] = useSearchParams()
  return (
    <div className={styles.titleTop}>
      <NavBar onBack={() => nav(-1)}>
       {props.title}
      </NavBar>
    </div>
  )
}

export default MyavBr
